
// 挂载全局 _utils
const _utils = {}
_utils.install = function (Vue) {
     // 注入计算
     Vue.prototype.$calc = function (type, paramOne, paramTwo) {
       return calc(type, parseFloat(paramOne), parseFloat(paramTwo))
     }
   

     // 注入 localStorage
     Vue.prototype.$localStorage = {
       set (key, value) {
         window.localStorage.setItem(key, value)
       },
       get (key) {
         return window.localStorage.getItem(key)
       },
       clearitem (key) {
         window.localStorage.removeItem(key)
       },
       clear () {
         window.localStorage.clear()
       }
     }
   

   }
   module.exports={
     _utils
   }